<template>
  <div id="luckysheet"></div>
</template>

<script>
export default {
  mounted() {
    this.init();
  },

  methods: {
    init() {
      var options = {
        container: "luckysheet", // luckysheet为容器id
        title: "luckysheet", // 表 头名
        lang: "zh", // 中文
      };
      luckysheet.create(options);
    },
  },
  beforeDestroy() {
    window.luckysheet.destroy();
  },
};
</script>

<style lang="scss" scoped>
#luckysheet {
  width: 100%;
  height: 100%;
}
</style>
